<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});
Route::get('up_title','ProductController@up_title');


Route::post('/api/miniapp/wechat/login', 			'WechatController@login');
Route::post('/api/miniapp/wechat/login_by_code', 	'WechatController@login_by_code');
Route::post('/api/miniapp/wechat/register', 		'WechatController@register');
Route::post('/api/miniapp/wechat/pay', 				'WechatController@pay');
Route::post('/api/miniapp/wechat/pay_notify', 		'WechatController@pay_notify');
Route::post('/api/miniapp/wechat/sendSms', 			'WechatController@sendSms');
Route::post('/api/miniapp/wechat/merchant_divide', 	'WechatController@merchant_divide');

Route::post('/api/miniapp/ticket/add', 				'TicketController@add');
Route::get('/api/miniapp/ticket/list', 			    'TicketController@list');
Route::get('/api/miniapp/ticket/detail', 			'TicketController@detail');
Route::post('/api/miniapp/ticket/coupon_custom_list', 				'TicketController@coupon_custom_list');

Route::get('/api/miniapp/product/list', 			'ProductController@list');
Route::get('/api/miniapp/product/search', 			'ProductController@search');
Route::get('/api/miniapp/product/category', 		'ProductController@category');
Route::get('/api/miniapp/product/detail', 			'ProductController@detail');

Route::post('/api/miniapp/cart/add', 				'CartController@add');
Route::get('/api/miniapp/cart/list', 				'CartController@list');
Route::delete('/api/miniapp/cart/remove', 			'CartController@remove');

Route::post('/api/miniapp/order/add', 				'OrderController@add');
Route::get('/api/miniapp/order/detail', 			'OrderController@detail');
Route::put('/api/miniapp/order/remove', 			'OrderController@remove');
Route::get('/api/miniapp/order/list', 				'OrderController@list');
Route::get('/api/miniapp/order/stats', 				'OrderController@stats');
Route::post('/api/miniapp/order/confirm', 			'OrderController@confirm');

Route::post('/api/miniapp/delivery/add', 			'DeliveryController@add');
Route::get('/api/miniapp/delivery/list', 			'DeliveryController@list');
Route::post('/api/miniapp/delivery/update', 		'DeliveryController@update');
Route::delete('/api/miniapp/delivery/remove', 		'DeliveryController@remove');
Route::get('/api/miniapp/delivery/default', 		'DeliveryController@default');
Route::get('/api/miniapp/delivery/info', 		    'DeliveryController@info');

Route::get('/api/miniapp/question/list', 			'QuestionController@list');
Route::get('/api/miniapp/question/info', 			'QuestionController@info');

Route::post('/api/miniapp/feedback/post', 			'FeedbackController@post');

Route::get('/api/miniapp/dropdown/address', 		'DropdownController@address');

Route::get('/api/miniapp/message/check_signature', 	'MessageController@check_signature');
Route::post('/api/miniapp/message/message_order', 	'MessageController@message_order');
Route::get('/api/miniapp/message/message_system', 	'MessageController@message_system');

Route::post('/api/miniapp/upload/upload_picture', 	'UploadController@upload_picture');

Route::get('/api/miniapp/user/remind','UserController@remind');


Route::post('/api/miniapp/banner/main_banner','BannerController@main_banner');
Route::post('/api/miniapp/banner/banner_list','BannerController@banner_list');


Route::get('/api/miniapp/erweima/create_qrcode','ErweimaController@create_qrcode');
Route::get('/api/miniapp/erweima/create_detail_qrcode','ErweimaController@create_detail_qrcode');
Route::post('/api/miniapp/erweima/get_be_shared','ErweimaController@get_be_shared');




